package org.hugoduncan.appam.model;

import org.hugoduncan.appam.server.PathHandler;

/**
 * Modelod an APP ServiceComponent.
 * The server manager has the opportunity to respond to requests.
 * @author duncanhugo
 *
 */
public interface ServiceComponent
    extends PathHandler, Component
{
    /**
     * Provide the path of the introspection document relative to the
     * servelt mapping root.
     * Note that the PathHandler super-interface implementation
     * is responsable for actually responding to requests for this
     * document.
     * @return URL of introspection document for this server
     */
    String getIntrospectionPath();

    void setIntrospectionPath(String path);

    /**
     * Add a workspace to the the service
     * @param wsc
     */
    void add(WorkspaceComponent wsc);
}
